using OneDayModel.Interfaces;

namespace OneDayModel.Tests.Mocks
{
    public class UploadedFileMock : IUploadedFile
    {
        private readonly string pictureName;

        public UploadedFileMock(string pictureName)
        {
            this.pictureName = pictureName;
        }

        #region IUploadedFile Members

        public string SavePictureAndThumb(IFileSystem fileSystem, string path, string thumbsPath)
        {
            fileSystem.SaveFile(new MockStream(), fileSystem.CombinePath(path, pictureName));
            fileSystem.SaveFile(new MockStream(), fileSystem.CombinePath(thumbsPath, pictureName));

            return pictureName;
        }

        #endregion
    }
}